#ifndef __SHARE_H_
#define __SHARE_H_

#ifdef __cplusplus
extern "C" {
#endif

// 共享内存中的数据地址
#define SHARE_START_ADDR        0xA000
#define GDT_ENTRY_ADDR          (SHARE_START_ADDR + 0)
#define GDT_SIZE_ADDR           (SHARE_START_ADDR + 4)
#define LDT_ENTRY_ADDR          (SHARE_START_ADDR + 8)
#define LDT_SIZE_ADDR           (SHARE_START_ADDR + 12)
#define IDT_ENTRY_ADDR          (SHARE_START_ADDR + 16)
#define IDT_SIZE_ADDR           (SHARE_START_ADDR + 20)
#define TSS_ENTRY_ADDR          (SHARE_START_ADDR + 24)
#define TSS_SIZE_ADDR           (SHARE_START_ADDR + 28)
// ...

#define APP_INFO_ADDR           (SHARE_START_ADDR + 0x800)
#define APP_NUM_ADDR            (SHARE_START_ADDR + 0x804)

#ifdef __cplusplus
}
#endif

#endif
